/**
 * 
 * Copyright (C) 2015 by Elcom Software Company
 *
 * @id: DBLogicAbs.java, Feb 5, 2015
 *
 */
package com.nip.commons.dbcp.basic;

import java.sql.Connection;
import java.sql.SQLException;

import com.nip.commons.dbcp.interf.IDBLogic;
import com.nip.commons.dbcp.interf.IDBPool;

/**
 * @author ThangNM<thangnm@elcom.com.vn>
 *
 * @version v
 */
public abstract class DBLogicAbs implements IDBLogic {

    protected final IDBPool pool;
    
    public DBLogicAbs(IDBPool pool) {
        super();
        this.pool = pool;
    }

    protected void close(Connection conn)
    {
        if(conn == null)
        {
            return;
        }
        
        try {
            conn.close();
        } catch (SQLException e) {
        }
    }
}
